﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace IceDog.EFCore.Models.Blog
{
    /// <summary>
    /// 博客评论
    /// </summary>
    public class BlogComment
    {
        /// <summary>
        /// 评论id
        /// </summary>
        [Key]
        public int CommentId { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 评论时间
        /// </summary>
        public DateTime CommentTime { get; set; }
        /// <summary>
        /// 评论人id
        /// </summary>
        public int CommenterId { get; set; }
        /// <summary>
        /// 评论人
        /// </summary>
        public BlogUser Commenter { get; set; }
        /// <summary>
        /// 文章id
        /// </summary>
        public int ArticleId { get; set; }
        /// <summary>
        /// 博客文章
        /// </summary>
        public BlogArticle Article { get; set; }
    }
}
